package com.mydemo.design_pattern.action_type.command_pattern;

import com.mydemo.design_pattern.action_type.command_pattern.impl.ApacheCmd;
import com.mydemo.design_pattern.action_type.command_pattern.impl.IdeaCmd;
import com.mydemo.design_pattern.action_type.command_pattern.impl.NginxCmd;

/**
 * <p></p >
 *
 * @author liming1
 * @version $Id: DemoTest, v1.0 2019-09-19 15:20 liming1 Exp $
 */
public class DemoTest {
    public static void main(String[] args) {
        ApacheCmd apacheCmd = new ApacheCmd();
        IdeaCmd ideaCmd = new IdeaCmd("打开maven");
        NginxCmd nginxCmd = new NginxCmd(10);

        Shell shell = new Shell();
        shell.addCommond(apacheCmd);
        shell.clickBackspace();
        System.out.println("============================");

        shell.addCommond(ideaCmd);
        shell.clickBackspace();
        System.out.println("============================");

        shell.addCommond(nginxCmd);
        shell.clickBackspace();
    }
}
